import { createRouter,createWebHistory,createWebHashHistory } from 'vue-router'

import reporting from "../views/reporting.vue"
import charts from "../views/charts.vue"
import map from "../views/map.vue"

const routes = [
    {
        path:'/',
        name: "bigData",
        redirect: '/map',
        children: [
            {
                path: '/map',
                name: "map",
                component: map
            },{
                path: '/reporting',
                name: "reporting",
                component: reporting
            },{
                path: '/charts',
                name: "charts",
                component: charts
            }
        ]
    }
]

const router = createRouter({
    history:createWebHistory(),
    routes,
})

export default router;